package com.chainyoung.component_tmperson.ui.mvp.contract;

import com.chainyoung.common.appcommon.entity.HdWalletTokenCache;
import com.chainyoung.common.appcommon.hdwallet.TokenBalance;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;

import java.util.List;

import io.reactivex.Flowable;

public interface HdWalletTokenTransactionContract {

    interface View extends IView {

        void onGetSingleTokenTransfersSuccessed(String data);

        void onGetSingleTokenTrasferFailed();

        void onGetTokenBalanceSuccessed(TokenBalance data);

        void onGetTokenBalanceFailed(String contractAddr);


    }


    interface Model extends IModel {

        Flowable<String> getSingleTokenTransfers(String contractAddr, String address, int page, int offset);

        Flowable<TokenBalance> getTokenBalance(String contractAddr, String addr);

    }


}
